Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erode / dilate preliminary implementation #4243

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

qpincon
Copy link

@qpincon qpincon commented Oct 23, 2024

Adresses #1719.

This is mostly a copy / paste of the previous try of implementation by #1744

The dilate operation works well, however erode does not seem to work but rather just shift the whole black pixels to the bottom right. I really can't tell why. I tried to fill the mask with 0, 128 and 255, but the results are the same.

Original Expected Actual
dot-and-lines erode-1 erode-2

If anyone has an idea as of why it happens, I'll gladly try to fix it!

@lovell
Copy link
Owner

lovell commented Oct 24, 2024

Merci beaucoup for the PR Quentin, I'll try to take a look to see if I can work out why the erode operation is not working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants